import axios from 'axios'

// 创建axios实例对象
const instance = axios.create({
    baseURL: 'https://restapi.amap.com/v3/',
    timeout: 3000
})

instance.interceptors.response.use((response) => {
    return response.data
}, (error) => {
    return Promise.reject(error)
}
)

// 5. 导出axios实例
export default instance